package com.mixsmart.mobile.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * 移动版首页
 * @author lmq
 * @version 1.0
 * @since JDK版本大于等于1.6
 * 2016年2月22日
 */
@Controller
@RequestMapping("/index.do")
public class IndexController extends BaseMobileController {

	
	/**
	 * 移动版首页
	 * @return 返回首页视图
	 */
	@RequestMapping(method=RequestMethod.GET)
	public ModelAndView index() {
		ModelAndView modelView = new ModelAndView();
		modelView.setViewName("index");
		return modelView;
	}
	
	/**
	 * 首页内容选项
	 * @return
	 */
	@RequestMapping("/main.do")
	public ModelAndView main() {
		ModelAndView modelView = new ModelAndView();
		modelView.setViewName("main");
		return modelView;
	}
	
}
